.class public Lrexsee/core/progress/RexseeProgressBarDialog;
.super Ljava/lang/Object;
.source "RexseeProgressBarDialog.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "ProgressBarDialog"


# instance fields
.field private mBarProgressDialog:Landroid/app/AlertDialog;

.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 43
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 37
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBarProgressDialog:Landroid/app/AlertDialog;

    .line 44
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBrowser:Lrexsee/core/browser/Browser;

    .line 45
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mContext:Landroid/content/Context;

    .line 46
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/progress/RexseeProgressBarDialog;)Landroid/app/AlertDialog;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBarProgressDialog:Landroid/app/AlertDialog;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/core/progress/RexseeProgressBarDialog;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 39
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/core/progress/RexseeProgressBarDialog;Landroid/app/AlertDialog;)V
    .locals 0

    .prologue
    .line 37
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBarProgressDialog:Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic access$3(Lrexsee/core/progress/RexseeProgressBarDialog;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 40
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 30
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 26
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "ProgressBarDialog"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 34
    new-instance v0, Lrexsee/core/progress/RexseeProgressBarDialog;

    invoke-direct {v0, p1}, Lrexsee/core/progress/RexseeProgressBarDialog;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public hide()V
    .locals 2

    .prologue
    .line 118
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressBarDialog$2;

    invoke-direct {v1, p0}, Lrexsee/core/progress/RexseeProgressBarDialog$2;-><init>(Lrexsee/core/progress/RexseeProgressBarDialog;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 130
    return-void
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .param p1, "progressInt"    # Ljava/lang/String;
    .param p2, "progressText"    # Ljava/lang/String;

    .prologue
    const-string v2, ""

    .line 114
    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->TITLE_PROGRESS:Ljava/lang/String;

    const-string v0, ""

    const-string v0, ""

    move-object v0, p0

    move-object v3, p1

    move-object v4, p2

    move-object v5, v2

    invoke-virtual/range {v0 .. v5}, Lrexsee/core/progress/RexseeProgressBarDialog;->show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 115
    return-void
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 9
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;
    .param p3, "progressInt"    # Ljava/lang/String;
    .param p4, "progressText"    # Ljava/lang/String;
    .param p5, "cancelCallback"    # Ljava/lang/String;

    .prologue
    .line 50
    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressBarDialog;->mContext:Landroid/content/Context;

    move-object v0, v1

    check-cast v0, Landroid/app/Activity;

    move-object v8, v0

    new-instance v1, Lrexsee/core/progress/RexseeProgressBarDialog$1;

    move-object v2, p0

    move-object v3, p3

    move-object v4, p4

    move-object v5, p1

    move-object v6, p5

    move-object v7, p2

    invoke-direct/range {v1 .. v7}, Lrexsee/core/progress/RexseeProgressBarDialog$1;-><init>(Lrexsee/core/progress/RexseeProgressBarDialog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v8, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 112
    return-void
.end method
